const {contextBridge, ipcRenderer} = require('electron');

contextBridge.exposeInMainWorld('electronAPI', {
    readFile: () => ipcRenderer.invoke('read-file'),
    writeFile: (data) => ipcRenderer.invoke('write-file', data),
    getDataPath: () => ipcRenderer.invoke('get-data-path'),
    copyPathToClipboard: (path) => ipcRenderer.invoke('copy-path-to-clipboard', path) // 添加这行

});